#include "SMPPBroadcastAreaSuccess.hpp"

using namespace smpp::pdu;

BroadcastAreaSuccess::BroadcastAreaSuccess(const quint8 nValue):
TLV(TLVtags::TAG_BROADCAST_AREA_SUCCESS,1),_Value(nValue){}

BroadcastAreaSuccess::BroadcastAreaSuccess(
const BroadcastAreaSuccess &nBroadcastAreaSuccess):
TLV(nBroadcastAreaSuccess),
_Value(nBroadcastAreaSuccess.getValue()){}

bool BroadcastAreaSuccess::operator ==(
	const BroadcastAreaSuccess &nBroadcastAreaSuccess) const{
	return (TLV::operator == (nBroadcastAreaSuccess) && 
			_Value == nBroadcastAreaSuccess.getValue());
}

bool BroadcastAreaSuccess::operator !=(
	const BroadcastAreaSuccess &nBroadcastAreaSuccess) const{
	return !this->operator == (nBroadcastAreaSuccess);
}

BroadcastAreaSuccess &BroadcastAreaSuccess::operator = (
	const BroadcastAreaSuccess &nBroadcastAreaSuccess){
	if(*this == nBroadcastAreaSuccess)
		return *this;
	TLV::operator = (nBroadcastAreaSuccess);
	_Value = nBroadcastAreaSuccess.getValue();
	return *this;
}

void BroadcastAreaSuccess::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 BroadcastAreaSuccess::getValue() const{
	return _Value;
}
